import { MockMethod } from "vite-plugin-mock";
export default [
  {
    url: "/mock/api/login",
    method: "post",
    // 使用 body 可以获取请求体
    response: ({ body }) => {
      // 简单编写一个逻辑
      console.log(body);
      return {
        code: 200,
        msg: "success",
      };
    },
  },
] as MockMethod[];
